home *** CD-ROM | disk | FTP | other *** search
- //***********************************************************************
- //
- // FileView.h
- //
- //***********************************************************************
-
- class CFileView : public CListView
- {
- DECLARE_DYNCREATE (CFileView)
-
- protected:
- CImageList m_imglLarge;
- CImageList m_imglSmall;
-
- static const DWORD m_dwStyleList[4];
-
- int InitList (LPCTSTR);
- BOOL AddItem (int, WIN32_FIND_DATA*);
- void FreeItemMemory ();
-
- static int CALLBACK CompareFunc (LPARAM, LPARAM, LPARAM);
-
- virtual void OnUpdate (CView*, LPARAM, CObject*);
- virtual BOOL PreCreateWindow (CREATESTRUCT&);
-
- afx_msg int OnCreate (LPCREATESTRUCT);
- afx_msg void OnDestroy ();
- afx_msg void OnGetDispInfo (NMHDR*, LRESULT*);
- afx_msg void OnColumnClick (NMHDR*, LRESULT*);
- afx_msg void OnChangeView (UINT);
- afx_msg void OnUpdateViewUI (CCmdUI*);
-
- DECLARE_MESSAGE_MAP ();
- };
-
- typedef struct tagITEMINFO {
- CString strFileName;
- DWORD nFileSizeLow;
- FILETIME ftLastWriteTime;
- } ITEMINFO;
-